﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SWENAssignment
{
    public partial class deleteUserAccount : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSearch_Click(object sender, EventArgs e)
        {
            string loginID = tbxSearch.Text; 
            if (DBmanager.CheckUserAccByLoginID(loginID) == 1)
            {
                Session["loginID"] = tbxSearch.Text;
                Response.Redirect("deleteUserAccDisplay.aspx?");
            }
            else
            {
                lblStatus.Text = "LoginID not found !";
            }
        }
    }
}